﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FlexiCommerce.Components;

namespace FlexiCommerce
{
    public class ItemEventArgs : EventArgs
    {
        private PersistenceItem affectedItem;

        /// <summary>Creates a new instance of the ItemEventArgs.</summary>
        /// <param name="item">The item the associated with these event arguments.</param>
        public ItemEventArgs(PersistenceItem item)
        {
            this.affectedItem = item;
        }

        /// <summary>Gets or sets the item associated with these arguments.</summary>
        public PersistenceItem AffectedItem
        {
            get { return affectedItem; }
            set { affectedItem = value; }
        }
    }
}
